import os.path
import requests

import yaml
def get_obj_path():
    return os.path.dirname(__file__).split('common')[0]
    # return os.getcwd().split('common')[0]
def read_yaml(yamlpath):
    with open(get_obj_path()+yamlpath,mode='r',encoding='utf-8') as f:
        value=yaml.load(stream=f,Loader=yaml.FullLoader)
        return value
if __name__ == '__main__':
    print(read_yaml('Test_lee/get_token.yaml'))
    x = requests.getread_yaml('Test_lee/get_token.yaml')
    print(x)

